Use accessor functions to access GtkScale
authorJavier Jardón <jjardon@gnome.org>
Thu, 8 Jul 2010 02:14:44 +0000 (04:14 +0200)
committerJavier Jardón <jjardon@gnome.org>
Tue, 13 Jul 2010 17:40:50 +0000 (19:40 +0200)
gtk/gtkrange.c

index b3fd663b6a73a60aca47b87809b8f5ac88b67388..430764a1ee2a211d392f0874812e1f6131321f29 100644 (file)
@@ -2760,7 +2760,7 @@ gtk_range_adjustment_value_changed (GtkAdjustment *adjustment,
   
   /* now check whether the layout changed  */
   if (layout_changed (range->layout, &layout) ||
-      (GTK_IS_SCALE (range) && GTK_SCALE (range)->draw_value))
+      (GTK_IS_SCALE (range) && gtk_scale_get_draw_value (GTK_SCALE (range))))
     {
       gtk_widget_queue_draw (GTK_WIDGET (range));
       /* setup a timer to ensure the range isn't lagging too much behind the scroll position */